package com.tomcov.client.service;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.tomcov.shared.Journey;
import com.tomcov.shared.JourneyPassenger;

@RemoteServiceRelativePath("journeyService")
public interface JourneyService extends RemoteService{
	
	public Journey AddJourney(Journey journey);
	public Journey delete(Journey journey);
	public List<Journey> getJounreyAsDriver(String Username);
	public Journey updatejourney(Journey toupdate,Journey updated);
	public List<Journey> getJourneyasPassenger(String username);
	public Journey addpassenger(String idnumber, String passenger);
	public List<Journey> getJourneyAtTheDameDate(JourneyPassenger j);
	public Journey setimage(byte[] c ,String mapUrl,Journey j);
	public Journey getJourneyById(String idnumber);
	public Journey addpassenger(String idnumber, String passenger, String Waypoints);
	//public String getImage(Journey J);
	public Journey getJourneyByIdandAddWaypoints(String journeyidnumber,JourneyPassenger jp);
	Journey getJourneyByIdandAddWaypoints(String[] c, String journeyidnumber,JourneyPassenger jp);
			
}
